<?php
class Fabric_orderModel extends BaseModel
{
    var $table  = 'fabric_order';
    var $prikey = 'fabric_info_id';
    var $_name  = 'fabric_order';
    var $_relation = array(
		'belongs_fabric_shop' => array(
			'model' => 'fabric_shop',
			'type' => BELONGS_TO,
			'foreign_key' => 'fabric_shop_id',
            'reverse'       => 'has_fabric_order',
		)
	);
}